<template>
    <div>孙子组件</div>
</template>

<script>
export default {
    components: {},
    props: {},
    inject: ["foo", "foo2", "clickme"],
    data() {
        return {};
    },
    computed: {},
    methods: {},
    created() {
        console.log("我是孙子组件", this.foo);
        // this.clickme();
        this.$parent.$parent.clickme();
    },
    mounted() {}
};
</script>
<style scoped></style>
